# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=rpki-client
pkgver=9.3
pkgrel=0
pkgdesc="RPKI validator to support BGP Origin Validation"
url="https://www.rpki-client.org/"
arch="all"
license="ISC"
depends="rsync"
makedepends="
	expat-dev
	libretls-dev
	musl-fts-dev
	openssl-dev>3
	zlib-dev
	"
install="$pkgname.pre-install"
pkgusers="rpki-client"
pkggroups="rpki-client"
subpackages="$pkgname-doc"
source="https://cdn.openbsd.org/pub/OpenBSD/rpki-client/rpki-client-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-user=rpki-client
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
aa7bb82f7a91fb1e39bb707c46c2f30a4ac4745799cdadcdf0db64e4f3c39411ee07ff2fe4c55c0c1aebb38f26a356844c42a294f9c058c6ca1507e67ed1d827  rpki-client-9.3.tar.gz
"
